package com.johnny.myRedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class TestPool {
     public static void main(String[] args){
         JedisPool jedisPool = JedisPoolUtil.getJedisPoolInstance();
         Jedis jedis = null;
         try{
             jedis = jedisPool.getResource();
             jedis.auth("654321");
             jedis.set("pool","full");
         }catch (Exception ex){
             ex.printStackTrace();
         }finally {
              JedisPoolUtil.release(jedis);
         }
      }
}
